﻿@model JewererBasic.COMPONENT_EXPORTSTAFF

@{
    ViewBag.Title = "";

    var gd = new WebGrid(
            Model.COMPONENT_EXPORTSTAFFDETAIL,
            canPage: true,
            rowsPerPage: 10,
            selectionFieldName: "selectedRow",
            ajaxUpdateContainerId: "gridContent"
        );
    gd.Pager(WebGridPagerModes.NextPrevious);
}

<h2>Staff Export Detail</h2>

<fieldset>
    <a href="@Url.Action("TestingExportList", "Component")">
        <input type="button" value="BACK" />
    </a>
    <fieldset>
        <table>
            <tr>
                <td>
                    <strong>Export Id:</strong> @Model.IdExport
                </td>
                <td>
                    <strong>Date:</strong> @Model.DayMake
                </td>
            </tr>
            <tr>
                <td>
                    <strong>Exporter:</strong>  @Model.IdCreater
                </td>
                <td>
                    <strong>Worker Id:</strong> @Model.EMPLOYEE.Staff_Id
                </td>
            </tr>
            <tr>
                <td colspan="2">
                        <div id="stoneListDiv">
                            @gd.GetHtml(
                tableStyle: "table",
                headerStyle: "head",
                rowStyle: "row",
                alternatingRowStyle: "altRow",
                selectedRowStyle: "selectRow",
                columns: gd.Columns(
                gd.Column(header: "Stone Id", format: @<div style="width: 200px; text-align: center;"><span><span>@item.IdComponent</span></span></div>),
                gd.Column(header: "Exported Weight", format: @<div style="width: 150px; text-align: center;"><span><span>@item.Weight</span></span></div>),
                gd.Column(header: "Exported Dust", format: @<div style="width: 150px; text-align: center;"><span><span>@item.Dust</span></span></div>),
                gd.Column(header: "Return Weight", format: @<div style="width: 150px; text-align: center;"><span><span>@item.ReturnWeight</span></span></div>),
                gd.Column(header: "Reject Weight", format: @<div style="width: 150px; text-align: center;"><span><span>@item.RejectWeight</span></span></div>),
                gd.Column(header: "Return Dust", format: @<div style="width: 150px; text-align: center;"><span><span>@item.ReturnDust</span></span></div>),
                gd.Column(header: "Reason", format: @<div style="width: 200px; text-align: center;"><span><span>@item.Reason</span></span></div>)
            ))
                        </div>
                </td>
            </tr>
        </table>
    </fieldset>
</fieldset>
